package indi.kider.server.bill.model;

import lombok.Data;

/**
 * 账单聚合模型
 *
 * @author wangjingjing
 * @create 2018-10-20 上午10:06
 **/
@Data
public class BillInfoModel {

    String billData;

    Float waterBill;

    Float powerBill;

    Float total;

    public Float getTotal() {
        if (waterBill == null)
            this.waterBill = 0f;
        if (powerBill == null)
            this.powerBill = 0f;
        return waterBill + powerBill;
    }
}
